function bestC=Mugnet_CrossValidation(TrnLabels_Spec,f_train)
%Cross validation
bestC=0;
best_acc=50;
c_num=[0.0001 0.001 0.01 0.1 1 10 100 1000 10000];
cv_acc=zeros(9,1);
for i=1:9
    cv_acc(i,1) = train(TrnLabels_Spec, f_train',strcat('-c',32,num2str(c_num(i)),' -v 10'));%32:kongge
    if cv_acc(i,1)>best_acc
        best_acc=cv_acc(i,1);
        bestC=c_num(i);
    end
end
fprintf('The cross validation have finished, choosing the bestC next!!')
pause;
end